package com.basic.activity;

import java.io.Externalizable;
import java.io.File;
import java.io.IOException;

import com.basic.util.DeviceTool;
import com.basic.util.FileUtil;
import com.basic.util.ParseDataUtil;
import com.basic.util.FileUtil.DirCreateFailException;

import TestSource.Folks;
import android.app.Activity;
import android.os.Bundle;
import android.os.Environment;

public class BasicWorkActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Folks folk = new Folks();
        folk.setName("andy");
        folk.setAddress("112");
        folk.setAge("26");
        String jsonStr = ParseDataUtil.objToJson(folk);
        System.out.println(jsonStr);
        Folks jFolks = (Folks) ParseDataUtil.jsonToObj(jsonStr, Folks.class);
        System.out.println();
    }
}